<#import "/ftl/mainAdmin.ftl" as page>

<@page.mainTemplate styleSheet="moduleDownloadCss" jsFile="certificateJs" current="个人用户">
	<!-- BEGIN CONTENT BODY -->
    <div class="page-content">
    	<!-- BEGIN PAGE HEAD-->
         <div class="page-head">
            <!-- BEGIN PAGE TITLE -->
            <div class="page-title">
                <h1>新建证件
                    <small>新建证件信息页面</small>
                </h1>
            </div>
            <!-- END PAGE TITLE -->
        </div>
        <!-- END PAGE HEAD-->
        <!-- BEGIN PAGE BREADCRUMB -->
        <ul class="page-breadcrumb breadcrumb">
        	<li>
                <a href="${context}/base/index_ftl">首页</a>
                <i class="fa fa-circle"></i>
            </li>
            <li>
                <span class="active">新建证件信息</span>
            </li>
        </ul>
        <!-- END PAGE BREADCRUMB -->
        <!-- BEGIN PAGE BASE CONTENT -->
        <div class="row">
            <div class="portlet light bordered">
                <!--<div class="portlet-title">-->
                    <!--<div class="caption">-->
                    <!--</div>-->
                <!--</div>-->
                <div class="portlet-body form edit-form">
                    <form action="#" class="horizontal-form createform" id="addModuleForm" >
                    		<input type="hidden" id="consumer_id" name="consumer_id" value="${consumer_id}"> 
                            <input type="hidden" id="file_address" name="file_address" value=""> 
                            <input type="hidden" id="certimageface" name="certimageface" value=""> 
                            <div class="form-body">
	                            <div class="alert alert-danger display-hide">
	                                <button class="close" data-close="alert"></button> 表单含有错误. 请检查. 
	                            </div>
	                            <div class="alert alert-success display-hide">
	                                <button class="close" data-close="alert"></button> 表单验证通过! 
	                            </div>
                                <div class="row">
	                             <div class="col-md-6">
                                        <div class="form-group">
                                            <div class="input-group">
                                                <label class="input-group-addon">证件类型</label>
                                                <div class="input-group-content">
                                                    <select id="attachment_type" name="attachment_type"  class="form-control input-inline">
					                                 	<option value="">--请选择证件类型--</option>
					                                 	<option value="LAWCARDFRONT">身份证正面</option>
					                                  	<option value="LAWCARDBACK">身份证背面</option>
					                                </select>
				                                </div>
                                            </div>
                                        </div>
                                    </div>
                                	<div class="col-md-6">
                                        <div class="form-group">
                                            <div class="input-group">
                                                <label class="input-group-addon">证件名称</label>
                                            	<div class="input-group-content">
                                                	<input placeholder="★证件名称" class="form-control" name="file_name" value="">
				                                </div>
                                            </div>
                                        </div>
                                    </div>
                                    <!--/span-->
                                    <div class="col-md-12">
                                        <div class="form-group">
                                            <div class="input-group intro-content">
                                                <label class="input-group-addon">证件说明</label>
                                            	<div class="input-group-content">
                                                	<textarea class="form-control" name="remark" placeholder="★证件说明"></textarea>
				                                </div>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="col-md-4">
                                        <div class="form-group">
                                            <div class="input-group">
                                        		<span class="btn btn-success fileinput-button">
                                                    <i class="glyphicon glyphicon-plus"></i>
                                                    <span><#if mSysFileTemplateVO.accessory_address??>重新上传文件<#else>选择上传文件</#if></span>
                                                    <input id="fileupload" type="file" name="files" >
                                                </span>
                                                <div></div>
                                                <div id="files" class="files"></div>
			                                	<div id="progress" class="progress hide">
                                                    <div class="progress-bar progress-bar-success"></div>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                    <!--/span-->
                                </div>
                            </div>
                            <div class="form-actions top">
                                <div class="row">
                                    <div class="col-md-offset-5 col-md-7">
                                         <button type="submit" class="btn green" id="infoSave">保存</button>
                                         <a href="" name="_certificate_index" class="btn default">返回</a>
                                    </div>
                                </div>
                            </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
    <!-- END CONTENT BODY -->

</@page.mainTemplate>